import { defineStore } from 'pinia'
import { ref } from 'vue'

const useUserStore = defineStore('user', () => {
  const userInfo = ref({
    name: 'zs'
  })
  const changeName = (name: string) => {
    userInfo.value.name = name
  }

  return {
    userInfo,
    changeName
  }
})
export default useUserStore
